package com.chengqj.observer.listener.event;

import java.lang.reflect.Method;

/**
 * @program: pattern
 * @description: 事件属性
 * @author: chengqj
 * @create: 2018-08-03 10:34
 **/
public class Event {
    //通知目标
    private Object targe;
    //事件源
    private Object source;
    //回掉方法
    private Method method;
    //何时触发
    private String trgger;

    public Event(Object targe, Method method) {
        this.targe = targe;
        this.method = method;
    }

    public Object getTarge() {
        return targe;
    }

    public void setTarge(Object targe) {
        this.targe = targe;
    }

    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public String getTrgger() {
        return trgger;
    }

    public void setTrgger(String trgger) {
        this.trgger = trgger;
    }
}
